package com.rxt.model.vo;

import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.time.LocalDateTime;

@Data
public class SaleOrderVo implements Comparable<SaleOrderVo>{
    private Long id;
    private String image;
    private String productName;
    private String orderId;
    private LocalDateTime checkoutTime;
    private Integer status;

    @Override
    public int compareTo(@NotNull SaleOrderVo saleOrderVo) {
        return (int) (saleOrderVo.getId() - this.getId());
    }
}
